document.getElementById('btn').onclick = function () {
    keyword = $('#key').val();
    $.ajax({
        url: '/analyze/search/',
        type: 'get',
        data: {'keyword': keyword,},
        success: function (arg) {
            if (arg.success == 1) {
                // window.location.href = '/analyze/show' //页面跳转
                // document.getElementById('anal_btn').setAttribute('class','btn')

                alert("搜索成功！请点击查看[数据分析报表]按钮查看！")
            }
        }
    })
};